import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)


export default new Router({
  routes: [
    {
      path: '/login',
      component: () => import('@/pages/login'),
    },
    {
      path: '/index',
      component: () => import('@/pages/index'),
      children: [
        {
          path: '/home',
          name: 'home',
          component: () => import('@/pages/index/home')
        },
        {
          path: '/user',
          name: 'user',
          component: () => import('@/pages/index/user_list')
        },
        {
          path: '/user_list',
          name: 'user_list',
          component: () => import('@/pages/index/user/user_list')
        },
        {
          path: '/vip',
          name: 'vip',
          component: () => import('@/pages/index/user/vip')
        },
        {
          path: '/info',
          name: 'info',
          component: () => import('@/pages/index/user_info')
        },
      ],
    },
    {
      path: '/alert',
      component: () => import('@/components/alert'),
    },
  ]
})
